Color = function(r, g, b, a) {
	this.r = 255;
	this.g = 255;
	this.b = 255;
	this.a = 1;

	this.r = r == null ? this.r : r;
	this.g = g == null ? this.g : g;
	this.b = b == null ? this.b : b;
	this.a = a == null ? this.a : a;
};

Color.prototype.ToStandard = function(noAlpha) {
	if (noAlpha) {
		return "rgb(" + this.r + "," + this.g + "," + this.b + ")";
	} else {
		return "rgba(" + this.r + "," + this.g + "," + this.b + "," + this.a + ")";
	}
};
